// 入口文件
import SEMRouter from "sme-router";
import advView from "$v/adv";
import loginView from "$v/login";
import advListView from "$v/advList";
import adminListView from "$v/adminList";
const router=new SEMRouter("app","html5");
router.route("/login",(req,res)=>{
    res.render(loginView())
})
router.route("/adv",(req,res,next)=>{
    next(advView({
        subRoute:res.subRoute()
    }))
})
router.route("/adv/advList",(req,res)=>{
    res.render(advListView())
})
router.route("/adv/adminList",(req,res)=>{
    res.render(adminListView())
})

